import request from '@/config/axios'

// 获取高级查询条件
export const getAdvanceCondtion = async () => {
  return await request.get({ url: `/ent/company/get-advance-condition` })
}

// 个人查询模板 列表查询
export const simpleUserList = async () => {
  return await request.get({ url: `/ent/user-template/simple-list` })
}

// 个人查询模板 新增模板
export const createUserTemp = async (data) => {
  return await request.post({ url: `/ent/user-template/create`, data })
}

// 企业搜索列表搜索
export const companyGetList = async (data) => {
  return await request.post({ url: `/ent/company/get-list`, data })
}

// 企业搜索 查询企业状态
export const companyGetStatus = async (data) => {
  return await request.post({ url: `/ent/company/get-status`, data })
}

// 企业搜索 领取企业
export const companyReceive = async (data) => {
  return await request.post({ url: `/ent/company/receive`, data })
}

// 单条搜索
export const companyGetOne = async (params) => {
  return await request.get({ url: `/ent/company/get-one`, params })
}

// 获取节点数据分页
export const nodePageGet = async (data) => {
  return await request.post({ url: `/ent/company/get-node-page`, data })
}

// 跟进记录 分页查询
export const followRecord = async (params) => {
  return await request.get({ url: `/ent/follow-record/page`, params })
}

// 企业标签
export const simpleList = async (params) => {
  return await request.get({ url: `/ent/tag/simple-list`, params })
}

// 简单列表查询
export const systemSimpleList = async (params) => {
  return await request.get({ url: `/ent/system-template/simple-list`, params })
}
// 删除用户模板
export const deleteUserTemp = async (id) => {
  return await request.delete({ url: `/ent/user-template/delete?id=` + id })
}
// 检索名称所搜list
export const getFieldDic = async (params) => {
  return await request.get({ url: `/ent/company/get-field-dic`, params })
}
